package com.yanqu.road.entity.log.cross.suitang;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_suitang_commander_set", desc = "逐鹿隋唐-指挥官设置日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "chasedeer_name", isCross = true)
public class LogCrossSuiTangCommanderSet extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityId")
    private int activityId;
    @FieldTypeAnnotation(desc = "商会ID", dataAttribute = "chasedeer_guild")
    private String unionId;
    @FieldTypeAnnotation(desc = "会长用户id", dataAttribute = "chasedeer_namefiruid")
    private long masterId;
    @FieldTypeAnnotation(desc = "指挥官用户id", dataAttribute = "chasedeer_nameuid")
    private long commanderId;

    public LogCrossSuiTangCommanderSet(int activityId, String unionId, long masterId, long commanderId) {
        this.activityId = activityId;
        this.unionId = unionId;
        this.masterId = masterId;
        this.commanderId = commanderId;
    }

    @Override
    public long getUserId() {
        return masterId;
    }
}
